Amazon interview question

How too check if a queue is circular