Pergunta de entrevista da empresa Trax Retail

Which design pattern would you use in "this" situation.