The function performs a substitution cipher on the input string, replacing each letter with a different letter.
