Oracle Interview Question

Stack implementation in Java