manas agrawal's submission of Distinct Pairs | CodeChef