Pergunta de entrevista da empresa Amazon

How would you implement a stack (with different functionalities)