JPMorganChase Interview Question

Difference of stack and queue