Pergunta de entrevista da empresa SRI Delhi

Find all the cycles in an undirected graph using BFS.