Amazon interview question

Linked lists, trees, graphs sorter arrays