PwC interview question

stack and queue tell the differences