The sentence is in the past tense and the speaker is talking about a question that Ochonu asked them last Tuesday. The correct option is "whether I had come before" because it is a question about a past action, and Ochonu is asking if the speaker had come before a certain time or event.