ASSESSMENT - 1 Given a string S of length N,reverse every word in place Input Size:1<=N<=100000 sample input : GOOD GOOD sample output : DOOG DOOG const readline = require ( 'readline' ); const inp = readline . createInterface ({ input: process . stdin }); const userInput = []; inp . on ( "line" , ( data ) => { userInput . push ( data ); }); inp . on ( "close" , () => { var str = String ( userInput ); function wordsReverser ( str ) { return str . split ( "" ). reverse (). join ( "" ). split ( " " ). reverse (). join ( " " ) } var ans = wordsReverser ( str ) console . log ( ans ) }) ...