Pergunta de entrevista da empresa Infosys

Problem related to dynamic programming