Two Sigma interview question

Coding questions included one simple one and one Dynamic programming question. Data science is a prediction problem.