ArraySum

Returns the sum of the given array