The function returns the last character of the input string.
[CODE]: def f(x):
           return x[-1]