Carbase interview question

1. C++ question 2. Java question 3, SQL Question