Upvest interview question

Do you know how a pub sub component work?