you give string sentence consist word separate space each word consist lowercase uppercase letter onlywe like convert sentence Goat Latin madeup language similar Pig Latin the rule Goat latin followsif word begin vowel e o u append ma end wordfor example word apple applemaif word begin consonant ie vowel remove letter append end add maFor example word goat oatgmaAdd letter end word word index sentence start 1for example word gets add end second word gets aa add end onreturn final sentence represent conversion sentence Goat Latin Example 1input sentence I speak Goat LatinOutput Imaa peaksmaaa oatGmaaaa atinlmaaaaaexample 2input sentence the quick brown fox jump lazy dogoutput heTmaa uickqmaaa rownbmaaaa oxfmaaaaa umpedjmaaaaaa overmaaaaaaa hetmaaaaaaaa azylmaaaaaaaaa ogdmaaaaaaaaaa Constraints1 sentencelength 150sentence consist english letter spacessentence lead trail spacesAll word sentence separate single space