postOrder that takes a node root and returns a pair of integers: the sum of all nodes and the count of nodes in the subtree rooted at root.root is NULL, return (0, 0).postOrder for root.left and root.right, storing the results in left and right respectively.nodeSum as the sum of root.val, left sum, and right sum.nodeCount as 1 (for the current node) plus the count from left and right.nodeSum by nodeCount and rounding down.root.val, increment the counter count.(nodeSum, nodeCount).postOrder traversal, return the value of count.