FINRA Interview Question

implement queue using an array