Domanda di colloquio di Garena

How does a double end queue is designed?