Pairing question problem

I have implemented the code but getting the wrong answer. I am unable to identify the flaw. Please help

Hey @abhir26
I see you were able to solve this problem and received 100 score
Great work buddy
So i’m closing the doubt