The function f(x) takes a word as input and applies a letter substitution rule, where each letter in the input word is replaced by a letter three positions ahead of it in the alphabet, wrapping around to the beginning of the alphabet if necessary.
