JPMorganChase interview question

How would I implement two types of classes