Integral Ad Science interview question

Dynamic programming stock price question