Pergunta de entrevista da empresa Nokia

Stacks using queues and queue using stack coding question