Leetcode Running Sum Of 1d Array In Python Syntax For User