SAP interview question

DSA graphs based on DFS and BFS