you give string title consist word separate single space word consist english letter Capitalize string change capitalization word thatIf length word 1 2 letter change letter lowercaseotherwise change letter uppercase remain letter lowercasereturn capitalize title Example 1input title capiTalIze the titleoutput Capitalize the titleexplanationsince word length 3 letter word uppercase remain letter lowercaseexample 2input title First leTTeR each WordOutput First Letter each WordExplanationThe word length 2 lowercasethe remain word length 3 letter remain word uppercase remain letter lowercaseExample 3input title lOve leetcodeoutput love LeetcodeExplanationThe word length 1 lowercasethe remain word length 3 letter remain word uppercase remain letter lowercase Constraints1 titlelength 100title consist word separate single space lead trail spacesEach word consist uppercase lowercase english letter nonempty