Tree Column Traversal - Coding problem | OneNoughtOne