Returns sum of all root to leaf paths . The first parameter is root of current subtree , the second parameter is value of the number formed by nodes from root to this node
public virtual int treePathsSumUtil ( Node node , int val ) {