Airtime Interview Question

How would you create a circular buffer and support put and pop operations?