reverse the words in a sentence.

Interesting problem about reversing the words of a sentence:
My name is Omar --> Omar is name My
The solution does it in place with a total of N swaps. N is the size of
the string.