Optiver interview question

Design a circular buffer queue implementation.