Maximum Subarray Leetcode Question