Devesh Agarwal's submission of Distinct Pairs | CodeChef