Pregunta de entrevista de Bending Spoons

How to solve an analytical problem.