Pregunta de entrevista de xAI

Dynamic programming-based sum of integers in an array.