Question d’entretien chez Demandbase

House Robber Leetcode problem , one DFS graph question