function re(str) { let masR = str.split(""); let masE = []; for(i=0; i