Pregunta de entrevista de Optiver

two object oriented design problems