You are given the root of a binary tree.
Your task is to calculate the sum of all node values in the tree.
Return the total sum of all node values.
10
The sum of all node values (1 + 2 + 3 + 4) is 10.
None
0
An empty tree has a sum of 0.
1
A single node tree has a sum equal to its value.
10