Autodesk interview question

Reverse a string