Implement Que using 2 stacks. write test cases for it.
Anónimo
When queuing push the elements in the first stack, and when dequeuing pop from the first stack and push into the second stack until the first stack is empty. At that point, pop the second stack and that is your dequeued element.