Pregunta de entrevista de IMC Trading

Dynamic programming similar to the coin problem