Pregunta de entrevista de NVIDIA

How to solve a dynamic programming problem