Infosys interview question

stack operations and asked how would you implement