Typescript Reduce Sum Python Function Exercises