Concept Flow - Implement Stack Using Queue
Initialize empty queue
Push operation: enqueue new element
Rotate queue to move new element to front
Pop operation: dequeue front element
Top operation: peek front element
Check if queue is empty
Stack operations are done by using a single queue where push adds element and then rotates the queue to keep the last pushed element at front, so pop and top operate on front.
