Question d’entretien chez X

One SQL question. Two algorithms questions.