Pregunta de entrevista de Duolingo

Given some operations, identify the data structures