Maximum Subarray Leetcode Compensation Expectations