Implement `sum(arr)` that returns the sum of all numbers in `arr`. Return `0` for an empty array.
Run your code to see results.