Citi interview question

Reverse a string. Also some basic SQL.