Doubt on understanding tree formation from given input

it was given take input of a generic tree using buildtree()
and the input format sample was as given below:
1 2
2 2
3 0
4 0
5 2
6 0
7 0
what is meant by this data and how to form a tree from this?


Hey Pls refer to this,it would help you!

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.