WA in Problem MXZERO

https://www.codechef.com/viewsolution/28409741

Consider the testcase:

1                 
10
0 0 0 0 0 1 1 1 1 1