Write a program which takes as input parameter a value, searches if the node in present in a tree.
If the node is present the program should return:
a) all the ancestors of the node
b) all the descendants of the node.
If the node is present the program should return:
a) all the ancestors of the node
b) all the descendants of the node.
Comment