The function replaces all occurrences of the letter "o" in the input string with the letter "W".
[CODE]: 
```python
def f(x):
    return x.replace('o', 'W')
```