Pergunta de entrevista da empresa Palantir Technologies

Made up a leetcode question