Canva interview question

Implement circular buffer using an array with 2 pointer