The function f(x) takes a word as input and replaces each letter with its position in the alphabet, wrapping around to the beginning of the alphabet when the letter is greater than 'z'. For example, the input "cat" would become "abc".

