Cses Problem Set Maximum Subarray Sum Hackerrank