add the solution to Reverse Words in a String