Two Sigma interview question

Question about dynamic programing, probability and data manipulation.