Return the sum of all integers in `nums`. Variant **#49** focuses on clean iteration without built-in shortcuts.
Example 1
Input: nums = [49,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]
Output: 280
Constraints
Acceptance: 77% · Topics: array, math