give binary array num return maximum length contiguous subarray equal number 0 1 Example 1input num 01output 2explanation 0 1 long contiguous subarray equal number 0 1example 2input num 010output 2explanation 0 1 1 0 long contiguous subarray equal number 0 1 constraints1 numslength 105numsi 0 1