Barclays Interview Question

Explain DFS and BFS algorithms