Pergunta de entrevista da empresa Accenture

Python coding question on dynamic programming