Vistaar Technologies interview question

Applications of stack and queue