Ans: If someone mentally harasses, then the offender will be punished under section 294 of the Indian penal code. Therefore, the offender will be imprisoned for about 3 years and can also be fined or both.