Infosys Interview Question

Explain BFS and DFS traversal. (code required)