Return the sum of all integers in `nums`. Variant **#30** focuses on clean iteration without built-in shortcuts.
Example 1
Input: nums = [30,31,32,33]
Output: 126
Constraints
Acceptance: 75% · Topics: array, math
← All practice problems