CGI Interview Question

Q: how to reverse a string?