The function takes a string input and returns a greeting based on the input. The greeting is determined by the input string.

