Question d’entretien chez ClearScore

How would you implement a stack in Java?