For every input string, the function replaces every occurrence of the letters "a", "A", "e", and "E" with the letter "q".

[CODE]: 
```python
def f(x):
    return x.replace("a", "q").replace("A", "q").replace("e", "q").replace("E", "q")
```