The function f(x) takes a word as input and returns the word with the letters rearranged alphabetically. For example, if the input is "apple", the output would be "eelap".

