Linear Sort Program In Python For Palindrome In Java