* traversal and prints the value. * @tree: is a pointer to the root node of the tree to traverse. * @func: is a pointer to a function to call for each node.