Name the daughters X, Y and Z.
Ask daughter X the question: ‘Is daughter Y older than daughter Z?’ If daughter X is the middle daughter, marry either of the other two.
If daughter X is the eldest, then marry the one she says is younger. If daughter X is the youngest, then marry the elder of the other two, which means marrying the one she says is younger.
So if the answer is yes, then marry daughter Z, and if the answer is no, then marry daughter Y.