The seven elements A, B, C, D, E, F and G are pushed onto a stack in reverse order, i.e., starting from G. The stack is popped five times and each element is inserted into a queue. Two elements are deleted from the queue and pushed back onto the stack. Now, one element is popped from the stack. The popped item is ________
push G F E D C B A :
Stack is :
pop 5 times
insert popped in queue: (rear) E D C B A (front)
delete 2 from queue: (rear) E D C (front)
push in stack
POP 1: B
so answer is B
@Arjun sir, i haven't got my consignment. the ...
Nice to see your plenty ...
For those who knows only about ...