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