Amazon interview question

- Develop DFS/BFS in Python