Visa Inc. Interview Question

Maximum subarray problem