This is about Section 110 of the CrPC, which lets a Magistrate ask a habitual offender, someone repeatedly involved in theft, housebreaking, receiving stolen property, or forgery, to give a bond for good behaviour. The question is only about the maximum length of that bond.
Since habitual offenders fall under the three-year ceiling specifically, the correct answer is 3 years.
It helps to see this question next to the other kinds of security bonds Chapter VIII of the CrPC allows, since the Code does not fix one single period for all of them, it grades the maximum period by how serious the category of person is.
Comparing the categories side by side shows why the law reserves the longest period for habitual offenders specifically, which is the group named in the question.
Therefore, the correct answer is 3 years.