The function maps each input string to the next string in a predetermined sequence.

