Bloomberg Interview Question

reverse the words in a string.