Zhang Yide's submission of Good Pairs | CodeChef