Adobe Interview Question

Stack implimentation using queue