Rivian interview question

how do you implement a queue