Goat Latin (LeetCode 824).
Asked in the coding stage. Given a sentence, transform every word into Goat Latin and return the transformed sentence. A word beginning with a vowel keeps its letters; otherwise, move its first letter to the end. Append ma, followed by a repeated according to the word's one-based position. For this task, the single-letter word e receives only the position-based a suffix.
Implement def to_goat_latin(sentence):. Input is a non-empty string containing words separated by single spaces. Return a string.
def to_goat_latin(sentence):