The function f(x) returns the reverse of the input string.

[CODE]:
```python
def f(x):
    return x[::-1]
```

This code uses Python's slicing syntax `[::-1]` to reverse the input string.