Sollicitatievraag bij Atlassian

graph based question, to be solved using dfs