Reverse Words In A String Leetcode Python