The function duplicates each letter in the input string and combines the duplicated letters in the output string.

[CODE]:
```
def f(x):
    output = ""
    for letter in x:
        output += letter * 2
    return output
```