Maximum Subarray Leetcode Problem Set 2 Based