C++:
long aVeryBigSum(vector<long> ar) {
long result = 0;
for(int i = 0; i < ar.size(); i++){
result += ar[i];
}
return result;
}
Explanation:
Just summing up the value of each vector and adding it to result. At the end, return result.