Domanda di colloquio di Infosys

Explain the difference between a stack and a queue. Provide an example use case for each.