結果 : maximum subarray problem solution