Find the word definition

Wiktionary
do time

vb. (context colloquial English) To spend time in prison (as a prisoner).