The function takes a string as input and returns the last character of the string.
