Calculate the sum of array

please explain me this problem i didnt understand how to do