Pergunta de entrevista da empresa Infosys

arrays. need to use dynamic programming techniques