The function f(x) takes a string input and returns a string output where each letter in the input has been shifted by a fixed number of positions down the alphabet, wrapping around to the beginning of the alphabet if necessary.

