I am unable to understand the problem

i am not not understanding the sample input

Here you are required to build a generic tree, whose first value denotes the node and 2nd value tells the no of children the particular node has.