Infineon Technologies interview question

print a tree data structure level wise