Pairing problem

only one test case passes https://ide.codingblocks.com/s/315490

@abhiuday102
refer to this code