Problem

Return the sum of all elements in an array of exactly three ints.

Examples

  • sum3([4, 5, 6]) -> 15
  • sum3([10, 0, 5]) -> 15
  • sum3([-1, 3, 2]) -> 4
Compile and test (Ctrl+Enter)