Maximum Subarray Leetcode Question 876