Sum of Array Elements

Given an array of integers nums, return the sum of all elements in the array.

Difficulty:

Console