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 ) num = fact ( num ) ; let ans = Math . floor ( num / den ) ; if ( k != 0 ) {