NVIDIA interview question

Implement a binary tree DFS/BFS.