BlackBerry interview question

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