Option 2 is the right answer. The given sentence talks about two actions, one of which began earlier. So, the tense should be past perfect with the format -- had + past participle. So, the complete sentence should be--Raja had left the house before Hari got there.