Frage im Vorstellungsgespräch bei Microsoft

Array question based on simple maths DFS graph question