The function f(x) takes a string input and returns a modified version of that string, rearranging the letters in the process.

