Building generic tree

Please help me to understand how to build the generic tree from this input.

@coder_ag hey abhishek you can refer to this link link.

Abishek for the generic tree
like take exmaple of a binary tree for a binary tree there are two childrean so we take left and right pointer
but in generic tree u have to take an array of pointer so that u can accomdate its all child
all one more chnage is that u have to take input using a for loop for each node child

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.