JPMorganChase Interview Question

maximum subarray sum was the question