Wrote arrayStack