Capgemini interview question

What is a stack and how does it work?