結果 : find the maximum subarray sum using kadane's algorithm