Amazon interview question

Reverse the words in a string. Code it.