f(x) takes a word as input and returns the continent where the city is located, if the city is recognized by the function. If the city is not recognized, the function returns "undefined".

