How to enter input in level order

how to enter input in level order in this question

hi @hhiteshbansal_40d12e2460a1738e
refer this code for taking the input -->

@hhiteshbansal_40d12e2460a1738e
you have reopen the doubt
any further question?

above code is not working

@Vaibhav277 has shared this code
kindly check that your code is correct or not @Vaibhav277

the code is fine and passing all test cases…