Return the sum of all integers in `nums`. Variant **#28** focuses on clean iteration without built-in shortcuts.
Example 1
Input: nums = [28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,0,1,2,3,4,5,6,7,8,9]
Output: 892
Constraints
Acceptance: 73% · Topics: array, math