Question d’entretien chez Givery

Graph question equivalent to leetcode hard