Intelly Labs interview question

Factory Design Pattern