Correct List sum implementation