CGI interview question

Q: how to reverse a string?