Domanda di colloquio di RetailMeNot

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