Apple interview question

Write a circular queue class