by@akouryy1
AC
882ms
console.log((""+require('fs').readFileSync(0)).replace(/([K\s]{50})./g,"$1T").replace(/(?<=K.*) (?=.*T)/g,"*"))
T K
T T T T T T T T T T T T T T T T T T T T T T K******T