computes the sum of an array of many numbers ruby code example Example: ruby array sum [1, 2, 3, 4].sum