What would be the output after performing the following operations in a Deque?

Insertfront(10);  
Insertfront(20);
Insertrear(30);
Insertrear(40);
Deletefront();
Insertfront(50);
Deleterear();
Display();

Posted on by