SAS interview question

Graph theory and breadth first search v impt