4th Test case not being accepted

My 4th test case is not being accepted.
Before the first was also not being accepted which I fixed it by sorting the value of pairs and printing them

@krishnamanohar199 hey krishna please upload your code on the ide and share it here.

https://ide.codingblocks.com/s/72869