Pergunta de entrevista da empresa Interactive Brokers

Inheritance, OOPs. Some probabiltiy and math questions