Amazon Interview Question

implment stack using queue and vice versa