Informatica interview question

implementing stack using queue and vice versa.