Apple interview question

Maximum subarray sum problem with Kadane's algorithm.