Pregunta de entrevista de Mixpanel

Reverse a string using the code of your choice. Algorithm exercise.