Question d’entretien chez Atlassian

graph based question, to be solved using dfs