Cloudflare interview question

Implement a ring buffer in your language of choice