If you find yourself in this situation, the best thing to do is to flash your high beams at the oncoming car. This will usually cause the other driver to realize that they have their high beams on and they will turn them off. If this does not work, you can try waving your hand out the window or honking your horn.