Pregunta de entrevista de DLR

How would you solve this problem?