Solución
solution.tsTypeScript
export function commonChars(a: string, b: string): number {
const firstWord = new Set(a.toLocaleLowerCase());
const secondWord = new Set(b.toLocaleLowerCase());
return firstWord.intersection(secondWord).size;
}0respuestas