Turing interview question

Alternative 0s and 1s maximum length in a subarray