The function f(x) takes a list of words as input and applies a letter rearrangement rule to each word, moving each letter to a new position in the output word.

