Add current string to result of other strings and check if characters are unique or not
for ( let i = 0 ; i < tmp . length ; i ++ ) { let test = tmp [ i ] + arr [ ind ] ; if ( check ( test ) ) ret . push ( test ) ; } return ret ; }