BigTapp interview question

Write a program to implement stack operations using Java