The problem is opposite of this post. We are given a Queue data structure that supports standard operations like enqueue() and dequeue(). We need to implement a Stack data structure using only instances of Queue and queue operations allowed on the instances.
Implement Stack using Queues: https://www.geeksforgeeks.org/implement-stack-using-queue/