Rohit Goyal's submission of Distinct Pairs | CodeChef