X294: Binary Tree Sum Nodes Exercise

Write a recursive function that returns the sum of the values for all of the nodes of the binary tree with root "root".

Reset

Practice a different Java exercise