1
const maxLetter = function(str) {
const temp = {}
const arr = str.split('')
for(const item of arr) {
if (item in temp) {
temp[item]++
} else {
temp[item] = 1
}
}
let max = 0
for(const item in temp) {
if(temp[item] > max) {
max = temp[item]
}
}
return max
}
console.log(maxLetter('alkfjdjlaaaaksjfnvcoiewoifsdksla'))
1