Run Error in testcases except 1 and 2

bhai dekhiyo 2 test case chod kr sab me run error aa rh h…baki code toh theek hi lag rh h mujhe

changes in comments https://ide.codingblocks.com/s/392922

haan wo dusra question dekh kr rh tha toh smjh aagya ki array size badana padega…
Thanks
Vese agar question solve krne ke bad uska solution open kru points ka kuch scene toh nhi h na

Nope u can see the editorial after solving it

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.