Pergunta de entrevista da empresa Palantir Technologies

Leetcode medium or hard technical question