Pregunta de entrevista de FAO

How would you solve this problem?