Correct option is D
The correct choice is:
(D) The natives asked the tourists if they had enjoyed the day.
In indirect speech, questions are often introduced by a conjunction like "if" or "whether," and the verb tense is typically shifted back. Here, the direct question "Did you enjoy the day?" becomes "if they had enjoyed the day" in indirect speech.