Thales Interview Question

Write a function to sum up the numbers in an array