circular queue is completed successfully