Mayank Khetan's submission of Good Pairs | CodeChef