Implement a method that calculates the sum of all elements in an array of integers.
For the array [5, 10, 15, 20]:
Complete the calculateSum method that takes an array of integers and returns the sum of all elements in the array.
5 + 10 + 15 + 20 = 50
-5 + 5 = 0
When there's only one number, it's the sum by itself