RetailMeNot interview question

Implementing a Risk board game. Reverse the words in a string.