HCLTech Interview Question

Real situation where to go for factory pattern