Pregunta de entrevista de Wipro

Explain how stack and queue works with example