Simplify the palindrome determination logic.
Merge branch 'master' of https://github.com/niyue/coding