The name of this kind of poem is circle poem.
It is a unique rhetorical method in Chinese, which uses word order to go back and forth. Stylistically, it is called "Huizhou School". Palindrome, as its name implies, is a poem that can be read backwards, and a sentence that can be read backwards. It is a word game for China literati to show off their literary talent. It has no great artistic value, but it is also a wonderful work of China culture.