RBC interview question

Core Java, Multithreading concepts, Pub/Sub