In this case it passes only 2 test cases WHY?

here is the code

@rajsaxena.personal,
Try your code on this

Input
4
9 9 9 9
5
9 9 9 9 9

1 Like