Pergunta de entrevista da empresa Oracle

You have to reverse a string word by word.