How to solve Coding Challenge 1480. Running Sum of 1d Array