Pergunta de entrevista da empresa Morgan Stanley

Design a class hierarchy for some problem they give you