Google Interview Question

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