The function takes a string input and prints out a greeting message based on the input.
