Amazon interview question

describe pubsub and simple leetcode