Question d’entretien chez TikTok

Asked a Leetcode hard graph question