Intel Corporation interview question

Sum up the elements in an array