Pregunta de entrevista de Fidelity Investments

Mostly oop question and some design pattern.