NVIDIA Interview Question

Implement a stack by a queue or vise versa.