Pergunta de entrevista da empresa Wayground

Some DSA problem around graph. Heaps