The word "apple" reversed yields "elppa". No other input can produce the same output.
And in such a scenario can palindromes also be included in the list of permissible strings.
Was wondering about a non mathematical real world example of a one to one function. Thanks.