const rl = require('readline').createInterface({ input: process.stdin, output: process.stdout }) const inputs = [] const len = 8 rl.on('line', line => { inputs.push(line) }) rl.on('close', () => { const results = [] const str = inputs[0] const strLen = str.length for (let i = 0; ...