Maximum Subarray Problem Leetcode