Find S Algorithm Program In Python For Palindrome