
Write a stack class ArrayStack.java implements PureStack interface that reads in strings from standard input and prints them in reverse order. and
Show step by step what queue will look like after perform each of the following sequence of events:
a. start with an empty queue capacity 6
b. A joins the queue
c. B, C and D join the queue
d. A leaves the queue
e. B and C leave the queue
f. E, F and G join the queue
g. H and I join the queue
h. G leaves the queue
i. H and I leave the queue
Test the array queue implementation with the sequence of events described above.