Pregunta de entrevista de Macquarie Group

Implement a simple stack class with the functions push, pop, peak and getSize.