Feedback for RNDPAIR problem

My issue

Problem Link: RNDPAIR Problem - CodeChef

Feedback

Sir/Mam,
In this problem I don’t know what’s the error in my code coz as I’m clicking “Run” the code runs perfectly and gives the expected ans.

And their is no logical error as I personally have verified with many test cases and I have verified through “ChatGPT” also , and it also say’s that my code is perfect as per the given statements and requirement.

I hope you will find a solution for my problem.

Problem is correct and your solution is wrong.
Bruh, “ChatGPT” doesn’t always provide the correct solution.

Then pls help me with the correct correct solution.

my sol: Solution: 98431018 - CodeChef