Return the sum of all integers in `nums`. Variant **#35** focuses on clean iteration without built-in shortcuts.
Example 1
Input: nums = [35,36,37,38,39,40,41,42,43]
Output: 351
Constraints
Acceptance: 63% · Topics: array, math
← All practice problems