The function f(x) implements a letter substitution cipher, where each letter in the input string is replaced by a different letter a fixed number of positions down the alphabet.

