NVIDIA interview question

Dynamic programing