Frage im Vorstellungsgespräch bei Mixpanel

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