Meta interview question

Write push/pop functions for a ring buffer.