Pergunta de entrevista da empresa GE

what is Factory pattern and how it is useful