Amex interview question

Rotate the words in string.