Pregunta de entrevista de TikTok

Asked a Leetcode hard graph question