Select the most appropriate option that can substitute the underlined segment in the given sentence.
The teacher told him strictly that he hadn’t ought to do that in the class.
1
ought not has done
2
ought not to have done
3
ought not done
4
hadn’t ought to have done