aman agarwal's submission of Distinct Pairs | CodeChef