What does castigates mean?

Can you answer this question?