how to solve leetcode running sum of 1d array

welcome to shbcf.ru