I am getting WA on all the testcases of Pairing problem from Graphs