Consider following Scenario -
- The five items : P,Q,R,S and T are inserted into stack A one after other starting from T in reverse order
- The stack is popped three times and each element is inserted into another stack B.
- Then two elements are deleted from the stack B and pushed back onto the stack A.
What are the topmost elements of stack A and Stack B respectively?
- RP
- QR
- QP
- RQ