In the sentence "The place where he was staying was originally a guest house of the tea estate', the underlined word serves the grammatical function of a ............................
ARelative adverb introducing an adjective clause
BPreposition introducing a prepositional phrase
CAdverb modifying the verb
DConjunction introducing a noun clause