Word Stack (pushpop) Sample

Description

This program creates two stacks (Stack1 and Stack2) using the default class, IStack. It adds a number of words to Stack1, removes them from Stack1, adds them to Stack2, and finally removes them from Stack2 so that they can be printed. The push() and pop() functions are used for adding and removing elements.

Concept

This program is a sample to demonstrate the use of the default class IStack.

Task

This program uses stacks to push and pop elements.