The function f(x) is a simple substitution cipher that replaces each letter in the input string with a letter a fixed number of positions down the alphabet. For example, if the input string is "apple", the output will be "eple" because the letter "a" is replaced by "e" (which is 3 positions down the alphabet).

