function trans(s, n) { let arr = s.split(/\s/); let res = []; let temp; while (arr.length) { temp = arr.pop() temp = temp.split('') temp.forEach((word,i) => { if (/[a-z]/.test(word)...