Amazon Interview Question

Graph algorithms, pre/in/post order traversals.