Johnson Controls interview question

Difference between BFS and DFS