function solution(s, n) {
return s
.split("")
.map((el) => {
if (el === " ") {
return " ";
}
let askii = el.charCodeAt();
return el.toUpperCase().charCodeAt() + n > 90
? String.fromCharCode(askii - 26 + n)
: String.fromCharCode(askii + n);
})
.join("");
}