Amex Interview Question

Rotate the words in string.