Amazon Interview Question

Tree traversal algorithms.