Cses Problem Set Maximum Subarray Value Hackerrank