Pregunta de entrevista de Infosys

mostly about overlapping concepts and dynamic programming