other students pick on Tito, but he says that this behavior is a sign that the other student like him. What defense mechanism is Tito displaying?

Tito is displaying the defense mechanism of rationalization by interpreting the bullying behavior of the other students as a sign of their liking towards him. This rationalization helps Tito cope with the negative treatment he is receiving by attributing it to a positive motive.