Return the sum of all integers in `nums`. Variant **#2** focuses on clean iteration without built-in shortcuts.
Example 1
Input: nums = [2,3,4,5,6,7]
Output: 27
Constraints
Acceptance: 64% · Topics: array, math
← All practice problems