Factory Design Pattern In Detail Interview Question