NVIDIA interview question

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