Assume Stack and queue are defined already and there is a push and pop method defined as

Related Book For  answer-question

C++ Primer Plus

ISBN: 9780321776402

6th Edition

Authors: Stephen Prata

Posted Date: