Pregunta de entrevista de NVIDIA

How to use two stacks as a queue. Also do complexity analysis.