if all character are unique so there will be no pallindrome , so if num != 0 then only we are finding the factorial
if ( num != 0 ) : NEW_LINE INDENT num = fact ( num ) NEW_LINE DEDENT ans = num // den NEW_LINE if ( k != 0 ) : NEW_LINE