結果 : maximum subarray sum with distinct elements