Return the sum of all integers in `nums`. Variant **#1** focuses on clean iteration without built-in shortcuts.
Example 1
Input: nums = [1,2,3,4,5]
Output: 15
Constraints
Acceptance: 63% · Topics: array, math
← All practice problems