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
int treePathsSumUtil ( node * root , int val ) {