Pregunta de entrevista de Jane Street

Build a class to implement a feature.