Returns lexicographically smallest palindrome string , if possible
def smallestPalindrome ( str ) : NEW_LINE INDENT if ( not isPossiblePalindrome ( str ) ) : NEW_LINE INDENT return " Not ▁ Possible " NEW_LINE DEDENT n = len ( str ) NEW_LINE str = list ( str ) NEW_LINE DEDENT