Citi Interview Question

Reverse a string. Also some basic SQL.