The function appends each character of the input string to the end of the string.
[CODE]:

def f(x):
    output = ""
    for char in x:
        output += char + output
    return output