Domanda di colloquio di EY

Leetcode hard question based on graph