Infosys interview question

Explain BFS and DFS traversal. (code required)