Meta interview question

Code a stack in java