Google interview question

simple algorithm question about ques and stacks