結果 : maximum subarray with distinct elements