(solution) 1.Consider a language does not have arrays but does have stacks

(solution) 1.Consider a language does not have arrays but does have stacks

1.Consider a language does not have arrays but does have stacks as a data type. That is, one can declare.

Stack s;

and push, pop, top and isEmpty operations are defined. Describe how the store and extract operations on a one-dimensional array can be implemented by using these stack primitive operation on two stacks.