Sonos interview question

Implement ring buffer (language of your choice)