Pergunta de entrevista da empresa Palantir Technologies

Question where I had to use a union set algorithm