Pregunta de entrevista de Topgolf

How would you solve this problem?