Syren interview question

Swap adjacent characters in a string