NVIDIA interview question

Implement a stack by a queue or vise versa.