Maximum Subarray Leetcode Question 50