DISH interview question

JUnit, implement stack