For circular queue in java, dry run and show output:
CircularQueue q = new CircularQueue(7); //size is 7
for(int i = 1; i <=7; i++){
q.enqueue(i);
}
for(int i = 1; i<= 4; i++){
q.dequeue();
int x = q.dequeue();
q.enqueue(x);
}
please explain the answer with dry run test.

4 2 1 0 Show transcribed image text
Expert Answer
An answer will be send to you shortly. . . . .