The function f(x) takes a string input and returns a greeting message based on the time of day.

