How to take input

I dont understand how to take the input seems like the details about input are not sufficient

@rdsaurabh97 you have to form a tree .first a node value is given and then its no of children. then the same for its left child then the right child.when it completes you move to the next node.At last u have the level k where u have to find the sum

please mark your doubt as resolved if u are satisfied with my solution :slight_smile: