Pergunta de entrevista da empresa Microsoft

reverse words in string. e.g. "I am a student." => "student a am I"