Domanda di colloquio di TikTok

about a graph algorithm and very hard