← Return

Simple Array SumEasy

Given an array of integers, find the sum of its elements.

For example, if the array \(ar = [1, 2, 3]\), \(1 + 2 + 3 = 6\), so return \(6\).