Maximum Subarray Leetcode Problem Set 3