In the question, a sentence or part of a sentence is underlined. Below are given alternatives to the underlined part at (1), (2) and (3) , which may improve the sentence. In case no improvement is needed, your answer is (4).
He should not had done it.
1
should had not
2
should not have
3
should have
4
should had