Topic: Stack Problem / Level: advanced

Problem: Write a stack-based solution to implement a queue using two stacks with O(1) amortized time for each operation.

Run the code to see the output here...