Amazon interview question

Some basic concepts about heap, tree and other data structure