Pregunta de entrevista de GE

what is Factory pattern and how it is useful