Maxmimum subarray using cumulative sum

https://ide.codingblocks.com/s/352809.what is wrong in this code


Hey @shubhangis248
Did 2 changes in ur code and mentioned the changes in comments :slight_smile: