solution: reverse words in a string 1