Maximum Subarray Sum 2

I didn’t get the concept of the cumulative sum. Please help

hello @aavruty_dhir
cumulative sum till index i is just sum of all elements in range [0…i].

thats it