Pregunta de entrevista de Amazon

How would you implement a stack (with different functionalities)