Here, if u and v have the same parent, we say u is a sibling of v (vice versa)....Output
Print the information of each node in the following format:
node id: parent = p, sibling = s,...s is ID of its sibling. If the node does not have a sibling, print -1....node 3: parent = 1, sibling = 2, degree = 0, depth = 2, height = 0, leaf
node 4: parent = 0, sibling...node 7: parent = 5, sibling = 6, degree = 0, depth = 3, height = 0, leaf
node 8: parent = 4, sibling