The function replaces all occurrences of the letter 'l' with the letter 'K' in a given input string.

[CODE]:
```python
def f(x):
    return x.replace('l', 'K')
```