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