Marvell Technology Interview Question

Coding for a ring buffer.