Anonymous interview question

Implement a stack from scratch in Java