Blue Yonder interview question

Implement a stack in Java