Question d’entretien chez Didlake

How would you implement the solution?