Domanda di colloquio di Waymo

Dynamic programming question with follow up questions