He said, “What a beautiful day it is.” (Correct indirect speech)
Correct answer is: B. He exclaimed with wonder that it was a very beautiful day.
Exclamatory sentences with “what/how” convert into reported speech with “exclaimed with wonder/sorrow.”