結果 : maximum subarray sum with k distinct elements