Maximum Subarray Leetcode Question 3