Pergunta de entrevista da empresa MITRE

How do DFS and BFS work and how do they differ?