Microsoft interview question

Implement a circular buffer on paper.