The function f(x) implements a simple substitution cipher, where each letter in the input string is replaced by a letter three positions ahead of it in the alphabet, wrapping around to the beginning of the alphabet if necessary.

