Topic: Queue Problem / Level: advanced

Problem: Write a program to implement a queue that supports inserting and deleting elements from both ends.

Run the code to see the output here...