check whether given number is the sum from root to any leaf in binary tree