Pregunta de entrevista de SRI Delhi

One Graph Question based on DFS.