Pregunta de entrevista de Amazon

Reverse the words in a string. Code it.