J.P. Morgan Interview Question

How do you convert stack to a queue and implement it your choice of language.