dfs that takes a TreeNode as an argument and returns the sum of the values of its descendants.null, return 0.dfs on the left child and store the result in leftSum.dfs on the right child and store the result in rightSum.leftSum and rightSum.dfs on the root node.