Please help to write a program in C++ which uses anarray based stack class implementation with functions delete, pop,clear, push and top value to implement two stacks sharing the samearray as shown in the following photo. Please test the program withthe following input and show output screenshots:
Test:
stack 1:

21, 22, 23, 24, 25
and stack 2: 31, 32, 33, 35
Show transcribed image text
Expert Answer
An answer will be send to you shortly. . . . .