G-Research interview question

Dynamical programming question. Linear regression questions.