Pregunta de entrevista de Jane Street

Implement custom stack with various operations on it.