Altimetrik Interview Question

tree implementation