This problem asks you to write a function that returns the sum of the elements in an array. For example, if the input array is [1, 2, 3, 4, 5], the output should be 15 (1 + 2 + 3 + 4 + 5).
This is a good solution. The sum function is the optimal solution because it is a built-in function that is already optimized.
Evaluated at: 2022-11-20 08:15:47