Solve queue with two stacks