Write a program that takes an array of integers and returns the sum of all elements.
EasyProblem Statement
Write a program that takes an array of integers and returns the sum of all elements.
Sample Input
[1, 2, 3, 4, 5]
Sample Output
15
Limits
Time: 2s · Memory: 256 MB