Google interview question

What are the stack and queue used for?