noon interview question

what is the difference between stack and queue ?