Infosys Interview Question

stack operations and asked how would you implement