Pregunta de entrevista de Persistent Systems

Factory design patterns scenario and write the code.