HCLTech Interview Question

Tree height calculation