Maximum Subarray Problem Leetcode 754 Election