Implement tree left/right views via BFS and DFS | Amazon Interview Question