Question d’entretien chez WorkWave

Solve a rather basic programming problem, pseudocode was fine.