The function f(x) replaces all occurrences of the letter 'e' with the letter 'i' in the input string.
