antimetabole
A figure of speech in which the first half of words in a sentence are repeated in a different order/way in the second half of the sentence.
"fair is foul, and foul is fair" -The witches in Macbeth.
"hey did you know if you reverse the words in a sentence it's an antimetabole ?"
"hey did you know if you reverse the words in a sentence it's an antimetabole ?"