Changed sum variable to non-keyword identifier
Solved with filter, map, reduce, and list comprehension