Question d’entretien chez Graphcore

(white boarding question) Implement a circular buffer algorithm on the whiteboard and explain your though process.