
k번째 단어가 생길 때까지 순회k번째 알파벳 반환function kthCharacter(k: number): string {
let word = "a";
while (word.length < k) {
let nextPart = ""
for(const char of word) {
const nextCharCode = char.charCodeAt(0) + 1
nextPart += String.fromCharCode(nextCharCode)
}
word += nextPart
}
return word[k - 1]
}