Deutsche Bank interview question

implement the features of stack using an array.