Getting error in this question

Here’s my code.

@parikshit15155
Check line 13
You took the wrong array
There are similar silly errors
Please run your code on the sample case and see why the issue is coming

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.

I must say, the TA services are the best here. You guys just took 2 months to tell me the error in my code. By this pace, it seems like I’ll be a great competitive programmer soon !!
Anyway, thank you so much for your humble response.