Audible interview question

How to use a map to build a tree?