MathWorks interview question

Maximum Subarray sum of an array