Bloomberg interview question

Implement a queue with an array.