Microsoft interview question

Reverse a string but with a twist