Microsoft Interview Question

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