Build a last-in-first-out stack using only queue operations: add to the back, remove from the front, read the front, size and is-empty. Support push (put on top), pop (remove and return the top), top (read the top) and empty.
Build a last-in-first-out stack using only queue operations: add to the back, remove from the front, read the front, size and is-empty. Support push (put on top), pop (remove and return the top), top (read the top) and empty.