Pergunta de entrevista da empresa SimilarWeb

graph question that requirs "union-find"