GEP interview question

Programs on factory patterns, and angular