TechVerito interview question

Designe Pattern