Domanda di colloquio di Didlake

How would you implement the solution?