Maximum Subarray Leetcode Problem Set 4