Running Sum of 1d Array

给一个数组求,pre sum数组.