class Solution {
public:
vector<int> runningSum(vector<int>& nums) {
vector<int> ret = nums;
int total = 0;
for(int n = 0; n < ret.size(); n++) {
total = total + ret[n];
ret[n] = total;
}
return ret;
}
};