Question d’entretien chez Capgemini

Asked to solve pseudocode puzzles.