Sorting Program In Python For Palindrome