How to take input?

How do I take input in this question?

hello @Ak07
this is the code for building tree from level order format.

image

logic is exaclty same as level order traversal

Thanks, Got the Logic.