JPMorganChase interview question

maximum subarray sum was the question