Question d’entretien chez Meta

basic graph problem found on leetcode