How can i take this kind of tree input for solving it?

Tree Input and an integer K and what does this input signifies???

Hi Indrajeet,
You to make a generic tree with help of input and after forming it, take the input value of k at which level you have to find the sum.

got it thanks for the reply

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.