Pregunta de entrevista de FlyFin

State management related, some puzzles