The function f(x) takes a word input and returns "Male" if the input is a male name and "Female" if the input is a female name. For other words not related to gender, the function returns "undefined".

