結果 : maximum and minimum of an array leetcode