Pergunta de entrevista da empresa Palantir Technologies

The programming exercise was a typical algorithmic problem