Pregunta de entrevista de Salesforce

Question was about dynamic programming...