Tree top view-Doubt in approach

Doubt in approach - How to take level order input

@aganunay hey anunay go through this line of codes level wise.