Maximum Subarray Sum Codeforces Solution