Amazon Interview Question

Vertical order traversal of tree