circular buffer
RU: круговой буфер
A fixed-size array treated as a ring: two pointers (front and rear) wrap around using modulo, eliminating the O(n) cost of shifting. When the queue grows past capacity, it wraps to the beginning; efficient for bounded queues.