Question d’entretien chez BRAC IT Services

When should we use BFS and when DFS, explain with example