you give string text word place number space each word consist lowercase english letter separate space its guarantee text contain wordrearrange space equal number space pair adjacent word number maximize if redistribute space equally place extra space end mean return string length textreturn string rearrange space Example 1input text sentence output sentenceexplanation there total 9 space 4 word we evenly divide 9 space word 9 41 3 spacesExample 2input text practice make perfectoutput practice make perfect Explanation there total 7 space 3 word 7 31 3 space plus 1 extra space we place extra space end string Constraints1 textlength 100text consists lowercase english letter text contain word