Pregunta de entrevista de UnitedHealth Group

Dynamic algorithm design question