Deutsche Bank Interview Question

implement the features of stack using an array.