The function `f(x)` transforms an input string by replacing each consonant with the next consonant in the alphabet while keeping the vowels unchanged.

