/**
* @param {string} s
* @return {string}
*/
var freqAlphabets = function(s) {
let decrypted = '';
for(let i=0; i < s.length; i++){
if(s[i+2] === '#'){
decrypted += decrypt(s[i++] + s[i++]);
}else{
decrypted += decrypt(s[i]);
}
}
return decrypted;
};
const decrypt = (str) => String.fromCharCode(parseInt(str) + 96);