Hate it when I put this kind of question in the wrong order. Makes the answer wrong even though my language is correct.
The verb-subject inversion (better sentence, good job) is usually accepted by Duo. Are you sure there was no other mistake ? What was your answer ?
I tried "Est-ce que tu loueras..," just as an experiment. Gonged!