Radancy interview question

Describe factory design pattern