Pergunta de entrevista da empresa HCLTech

How would you implement a doubly liked queue?