Design a circular queue data structure | Optiver Coding Question