Pregunta de entrevista de Swiggy

Design a pub-sub system with components.