vinay raj 's submission of Distinct Pairs | CodeChef