Return the sum of all integers in `nums`. Variant **#14** focuses on clean iteration without built-in shortcuts.
Example 1
Input: nums = [14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]
Output: 405
Constraints
Acceptance: 76% · Topics: array, math