If the current operator has higherprecedence than the one currently on top of the stack or if the stack is empty it should be pushed onto the operator stack