Align Technology Interview Question

Swap words inside a string