Pregunta de entrevista de BRAC IT Services

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