Max Subarray Sum Problem Leetcode Solutions C