FINRA interview question

implement queue using an array