Capgemini interview question

What is factory design pattern?