Microsoft Interview Question

How can you reverse words in a string where words are separated by .