rohan's submission of Counting Pairs | CodeChef