Samarth Agarwal's submission of Good Pairs | CodeChef