Infineon Technologies Interview Question

print a tree data structure level wise