Algorithm enqueue(o) in_stack.push(o) Algorithm dequeue() if out_stack.isEmpty() then