Max Subarray Sum Problem Leetcode Contest