You are asked to perform a queue operation using a stack. Assume the size of the stack is some value ‘n’ and there are ‘m’ number of variables in this stack. The time complexity of performing deQueue operation is (Using only stack operations like push and pop)(Tightly bound).
(a) O(m)
(b) O(n)
(c) O(m*n)
(d) Data is insufficient
Why the answer is (a)?