The function replaces the letter 'p' with the letter 'k' in the input string.
[CODE]:
```python
def f(x):
    return x.replace('p', 'k')
```