Pregunta de entrevista de Meta

Data structures and algorithms coding problems, 2 in 45 min