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