Bharti Airtel Interview Question

Modification of maximum subarray sum