EMIS Group interview question

Regarding design patterns which we used