Amazon interview question

Tree, Heap, System Design, OOAD