To convert a statement into an interrogative, we usually invert the subject and auxiliary verb. "Is not drinking alcohol a bad habit?" correctly turns the statement into a question.
When turning a statement into a question, start with the auxiliary verb ("is") and invert it with the subject ("drinking alcohol").