Maximum subarray sum

why int left and int right are both initialized to -1

@Gurjot
l=-1 and r=-1 indicates that we have not found any subarray with maximum sum so far