Persistent Systems interview question

Factory design patterns scenario and write the code.