Maximum Subarray Leetcode Question 39