Insider One interview question

Design Pattern