Rajat Mittal's submission of Intelligent Pairs | CodeChef