Pregunta de entrevista de Infosys

arrays. need to use dynamic programming techniques