Pregunta de entrevista de Palantir Technologies

Leetcode question about data structures