Dequeue efficient using stack - wrong answer

That’s what I am doing? Is it wrong?
@abhishekchoudhary yes you just have to take input n, and push 0 to n - 1 numbers in the deque, instead you are trying to take user input for that also. I know it is a little confusing but this is why we have sample input, output.
Oh alright!
I understand.
Thanks.
