Pergunta de entrevista da empresa Spirent Communications

First Round: Implement a stack. How would you reverse the order of elements in the stack?