there were 3 bugs found in this code
1-the dequeue function was not working properly as soon as we removed any data it made the rear of the queue equal to front and wrongfully showed that queue is empty
2-the display function was not displaying when the queue is empty
3- the exit option did nothing