Maximum Subarray Leetcode Question 1