SAP Interview Question

BFS and DFS in a bi-directional graph