add reverse words in a string solution.