Pregunta de entrevista de Palantir Technologies

Made up a leetcode question