Pregunta de entrevista de Endorphina

What will be your solution in such (describing problem) problem?