Flourisense Interview Question

How do stack and queue work?