Thales interview question

Write a function to sum up the numbers in an array