Pregunta de entrevista de Palantir Technologies

Leetcode medium or hard technical question