Turing Interview Question

Alternative 0s and 1s maximum length in a subarray