For the question CHCBOX of March Cookoff,
My solution for the test case-
Test Case
1
6
2 1 1 1 1 2
is giving 0, whereas the answer should be 2. Not only mine, I checked many other solution, they also give 0.
This solution of a user gives the correct answer.
Am I missing something or are the test cases weak?