I\'ve got the following exercise at university:
I am given an array with the size of N and two numbers maxA and minA. We calculate the sum of elements in the array an