Meta Interview Question

Write push/pop functions for a ring buffer.