Yardi Systems interview question

Balance Tree