Siemens Interview Question

What is factory pattern