Gainsight Interview Question

Maximum subarray of equal 0 and 1