The function f(x) reverses the input word.
