He has to ask the following:
What road would the other guy say to take? Then take the other road.
If he happens to ask the liar, the liar will change the answer of the guy telling the truth. Take the other road and you are good.
If he happens to ask the person telling the truth the lair will lie and the truth teller will pass that on. Hence you take the other road.