G-Research Interview Question

Dynamical programming question. Linear regression questions.