Pergunta de entrevista da empresa Palantir Technologies

Coding question involved a set and hashmap.