heyy in this question multiple answers are possible because in the given example. There can be two subserts of max length 5 :
10 2
1 0 0 1 0 1 0 1 0 1
1 ans- 1 0 0 1 1 1 1 1 0 1 (my answers)
2 ans- 1 0 0 1 0 1 1 1 1 1 (given output)
I guess both the answers are valid but my 3 of my test cases show wrong answers. Please clarify.

