Pregunta de entrevista de Two Sigma

Question about dynamic programing, probability and data manipulation.