The function takes a string input and returns a string output that is a greeting or farewell message. The function can also handle multiple input strings and concatenate them in the output.

