Pergunta de entrevista da empresa Barraiser

Leet code question of dynamic programming