結果 : maximum subarray with only 2 distinct elements