結果 : leetcode problem 1 solution in python