DataSoft interview question

difference between stack and queue