Sponsored
Use these hints if you're stuck. Try solving on your own first.
Define a variable and add <code>nums[i]</code> to it in each step.
Solve with full IDE support and test cases