Given the head of a singly linked list, return the sum of all node values.
Traverse the list and accumulate the sum.
Input: Head of a singly linked list.
Output: Integer — sum of all node values.
Input: [1,2,3,4,5]
Output: 15
Explanation: 1+2+3+4+5 = 15.Input: [10,20,30]
Output: 60
Explanation: 10+20+30 = 60.Input: [-3,5,-2]
Output: 0
Explanation: -3+5+(-2) = 0.1<=nodes<=10^5-10^9<=Node.val<=10^9