Electrons in a twisted quantum wire