SAP Interview Question

DSA graphs based on DFS and BFS