Do you think the punishment given to the Professor is justified?

No, the punishment given to the Professor is not comparable to the offence committed. His behaviour could have been corrected. A rebuke given separately to him would have served the purpose. Not even the punishment brought any positive change in him.