Pregunta de entrevista de Citi

Reverse a string. Also some basic SQL.