Goldman Sachs interview question

Print a string in reverse