Eccella interview question

Factory Pattern