The function f(x) takes a string input and returns a string output that is a greeting or farewell message, depending on the input.

