Amazon Interview Question

Breadth First Search, etc. Linked list traversal.