RingCentral Interview Question

implement a Queue