結果 : maximum and minimum problem solving