The rule applied by the function f(x) is a simple substitution cipher, where each letter in the input word is replaced by a corresponding number.

