Bloomberg interview question

reverse the words in a string.