結果 : leetcode problem 1 in python