The function f(x) takes a string input and returns an output string that has the same length as the input. The function replaces each character in the input string with a different character, preserving the type of the character (numeric or alphabetic).

