Pregunta de entrevista de Atos

How would you solve this problem :...