Pregunta de entrevista de NYU (New York University)

How can you solve this problem?