What does the word castigate mean?

Alphabet: