結果 : maximum subarray problem time complexity