Maximum Subarray Leetcode Problem Set 1