title: How to add elements to a queue when the queue is already full and some values are then removed?
body: <p>I have created a queue of size 5. I inserted 5 values into the queue (1,2,3,4,5). now my front value is at the index 0 and my rear value is pointing at the index 4(the last position of my queue). Now I removed one element from the queue and so, my queue now has only (2,3,4,5) in it. now my queue is not full, since it has a free position in it. Only 4 values are filled and one value is removed. How could I enter a new value to that empty location in my queue? </p>