BlackBerry Interview Question

Implement a stack using queue, think about run time performance and optimization