Samsung Electronics interview question

ring buffer implementation live demonstration