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