結果 : leetcode problem 1 python