Amadeus interview question

design pattern, memory leak, C++, SQL, reverse a string