Why is there an error

prob-https://hack.codingblocks.com/app/contests/2173/1065/problem

i opened the concerned test case but that test case is
2
5
1 1 1 1 1
5
5 5 5 5 5

and this is the sample test case and my code gives correct answer on it

hello @laksh.rustagi12

the test cases are not in order.

pls check ur corrected code here-

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.