Pregunta de entrevista de Marvell Technology

How would you implement a circular buffer in C?