Pergunta de entrevista da empresa Unix Auto

There were some task to solve in SQL and some usual C/C++ programming question and to pseudocode an algorithm for a given task. The time was definitely short. Some 15 minutes. All in all it was easy, however I had to skip some details in the last task due to the tight time frame (draft logic was preseted only).