give sentence text a sentence string spaceseparate word follow formatFirst letter upper caseEach word text separate single spaceyour task rearrange word text word rearrange increase order length if word length arrange original orderreturn new text follow format show Example 1input text Leetcode coolOutput Is cool leetcodeexplanation there 3 word Leetcode length 8 length 2 cool length 4Output order length new word start capital letterExample 2input text keep calm code onOutput on calm codeexplanation output order followsOn 2 lettersand 3 letterskeep 4 letter case tie order position original textcalm 4 letterscode 4 lettersexample 3input text to beoutput to Constraintstext begin capital letter contain lowercase letter single space words1 textlength 105