Interactive Brokers interview question

Inheritance, OOPs. Some probabiltiy and math questions