how to solve queue using two stacks