Pregunta de entrevista de Didi Chuxing

Can you implement a publisher-subscriber pattern?