const DFS=(word, wordLength, madeList)=>{
let alphabets=[ 'A', 'E', 'I', 'O', 'U'];
if (wordLength===word.length){
madeList.push(word);
return;
}
alphabets.forEach((el)=>{
DFS(word+el, wordLength, madeList);
})
}
function solution(word) {
let madeList=[];
const currentWord="";
for (let i=1;i<=5;i++){
DFS(currentWord, i, madeList);
}
madeList=madeList.sort();
return madeList.indexOf(word)+1;
}