SRI Delhi Interview Question

One Graph Question based on DFS.