Amazon interview question

Linked List, Graphs, Trees