Goldman Sachs interview question

Reverse a string