Amazon interview question

Describe what a stack does.