Pregunta de entrevista de Interactive Brokers

Inheritance, OOPs. Some probabiltiy and math questions