Pregunta de entrevista de LiveRamp

A Dynamic programming question