Answer explained
Indirect speech of: He said, "Alas ! I am ruined." is
Correct answer: (D) He exclaimed with sorrow that he was ruined
An exclamation of sorrow ('Alas!') is reported as 'exclaimed with sorrow that', with the tense shifted back to 'was ruined'.