Morgan Stanley interview question

OOP principles