Fractal interview question

Diff btwn stack nd queue