Pregunta de entrevista de Bending Spoons

The problems are each containing sub problems