Maximum subarray sum-2

https://online.codingblocks.com/player/28486/content/4673/297
what about when i=0 and j=0, as it will result in
currentsum = cumsum[0] - cumsum[-1]
but -ve index will give garbage value which can cause wrong max sum.

@mddanish yeah danish you’re right in this case it tries to access the garbage value. This is the updated code