Maximum Subarray Problem Leetcode 7591