結果 : reverse words in a string leetcode solution python