Microsoft Interview Question

Implement a circular buffer on paper.