if the forward stack is not empty then we will just return current ImmutableQueue if the forward stack is empty, check the backward stack : if the backward stack is empty, it means the queue is empty ...