Write Algorithm For Dfs And Bfs Traversal Problem