ByAllAccounts interview question

What is factory patern