Problem
1. Draw a representation of an initially empty array list A after performing the following sequence of operations: add(0,4), add(0,3), add(0,2), add(2,1), add(1,5), add(1,6), add(3,7), add(0,8).
2. Give an adapter class to support the Stack interface using the methods of the array list ADT.