Align Technology interview question

Swap words inside a string