JPMorganChase interview question

Difference of stack and queue