C Increase Subarray Sums Hackerrank Solution