Test Case 1 doesn't pass


All the other test cases pass except 1

Check for this case

3
5 5 5
3
5 5 5
expected output is:
1, 1, 1, 0, END