Pregunta de entrevista de Jane Street

Implement a data structure with basic operations