Pregunta de entrevista de Infosys

Problem related to dynamic programming