DFS and BFS Explanation with Example