Siemens interview question

What is factory pattern