JPMorganChase Interview Question

oop design question cannot repeat look at top questions