Pregunta de entrevista de Garena

How does a double end queue is designed?