Queue Using Stack efficient

Sir,
what if we stored the top of the stack in a variable, pop it and then push the variable in the same primary stack and repeat this process till size -1 times then wont the theory and the code be more simple and fast ??

and pop the top finally.

my mistake sorry XD…