The function takes a string input and returns a string output with a salutation or farewell message.

