words
공백 기준으로 분리function canBeTypedWords(text: string, brokenLetters: string): number {
const words = text.split(' ')
const broken = new Set(brokenLetters)
let typedWords = 0
for(const word of words) {
let canType = true
for(const char of word) {
if(!broken.has(char)) continue
canType = false
break
}
if(canType) typedWords++
}
return typedWords
};