The function f(x) returns the color of the fruit if the input is a fruit name. Otherwise, the output is undefined.

