Implement a fixed-size first-in-first-out queue on top of an array whose end wraps around to its start, so slots freed at the front can be reused at the back. Support enQueue, deQueue, Front, Rear, isEmpty and isFull without using a built-in queue.
Implement a fixed-size first-in-first-out queue on top of an array whose end wraps around to its start, so slots freed at the front can be reused at the back. Support enQueue, deQueue, Front, Rear, isEmpty and isFull without using a built-in queue.