Google interview question

they ask to design and write code for scheduling multiple stream event