The function takes a string input and returns a greeting based on the input. If multiple inputs are given, the function returns a list of greetings based on the inputs.

