Manufac Analytics interview question

First write a class for queue, and the dequeue function should return the oldest number or value in the queue.