The rule applied by the function is: remove the last letter of the input word and insert the first letter of the input word at the beginning of the word.

