Macquarie Group interview question

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