Blume Global interview question

implementing queue using stack