Make a trait Queue which performs two functions of enqueue and dequque.
- Two classes: DoubleQueue and SquareQueue mix in this trait.
- You may use List for the implementation and keep both the classes in the same file with proper packaging.
DoubleQueue enqueues the element after doubling them SquareQueue enqueues the element after squaring them dequeue method will remove the first element from the queue(having concrete definition in trait Queue).