Maximum Subarray Leetcode Compensation Expectations Question