Sum of Array Elements
EasyArrayStringMATHIteration
### Description
Write a function that takes an array of integers as input and returns the sum of all its elements.
### Constraints
- The array can have up to 10^5 elements.
- Each element is between -10^4 and 10^4.
### Example
Input: [1,2,3,4,5]
Output: 15
Examples
Example 1
Input: [1,2,3]
Output: 6
Example 2
Input: [-1,0,1]
Output: 0