const rl = readline.createInterface({ input: process.stdin, output: process.stdout }); rl.on('line', function (line) { const arr = line.split(" "); const len = arr.shift(); const k = arr.pop(); const keyWord = arr.pop(); const siblings = []; arr.forEach(word => { ...