Microsoft interview question

Write the functions for a circular queue.