Implement Stack Using Queues

# Introduction In this challenge, we will implement a stack using two queues. The stack should have Last-In-First-Out (LIFO) behavior and support the `push`, `pop`, `top`, and `empty` operations. The challenge is to design an efficient algorithm to simulate the stack behavior using arrays to simulate the queues and only using the `push` and `shift` methods to simulate enqueue and dequeue operations. We need to ensure that the implementation satisfies the given test case's limitations and follows the specified function and file naming conventions.

|60 : 00

Click the virtual machine below to start practicing