The function f(x) takes a string as input and returns the last character of the string.

