Rivian Interview Question

how do you implement a queue