Pergunta de entrevista da empresa Pocket Gems

I was asked about how to use dynamic programming