CGI interview question

SQL queries, swap numbers without temp,reverse a string, DBMS related questions