Autodesk Interview Question

write the program to find the hight of tree