Option D
After inserting all the elements into stack the stack looks like A B C D E top of stack is E
Step 2: now popped 4 elements from the stack and inserted into queue each . E,D,C,B are popped and
Queue contains E,D,C,B front is E and rear is B
Step 3 : two elements are deleted from. Queue so E,D ARE deleted and pushed into stack
So now stack contains A,E,D
NOW again one element from stack is popped out
And the popped element is D