Return the sum of all elements in an integer array
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: easy
Interview Round: Other
Overview: Write a function that returns the total of every element in an integer array that can hold negative values. It tests basic array iteration, a simple loop invariant, and checking whether the result fits in a fixed-width integer type.