Pregunta de entrevista de Nokia

Stacks using queues and queue using stack coding question