Pergunta de entrevista da empresa Jump Trading

Dynamic programming + some language related tricks