How do we get a level wise input as shown in the question?

Can you please share the code to take the input in this question?

hey @vipulch https://ide.codingblocks.com/s/625869 this is the code to take input in level order form but in most of the case for any exam the we don’t need to right the input just we have to code for the answer

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.