Mtree Software interview question

Data structures