Pregunta de entrevista de World 50 Group

How would you solve this problem?