Autodesk interview question

Given a string, reverse the string