sum of an array