Pairing test case

https://ide.codingblocks.com/s/98905 Sir, the code is working for just one test case. Please check

I apologize for replying this late.
You can refer my code for the same question.
I have used scanf and printf for fast input and output resp.

Hope, this would help.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.