xAI Interview Question

Dynamic programming-based sum of integers in an array.