Apolis interview question

Reverse a string