Pregunta de entrevista de Bending Spoons

how do you approach this problem