Question d’entretien chez IBM

One algorithm problem, and one SQL problem.