Amazon Interview Question

Some basic concepts about heap, tree and other data structure