Search
The function calculateSum should calculate the sum of all elements in an array of numbers and return the result. If the array is empty, it returns 0.
For example: