NVIDIA Interview Question

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