Nerdy guy in prison

Been looking for a movie I remember watching as a kid. At some point this really nerdy looking guy ends up in prison (can’t remember the reason) and a fellow inmate convinces him to hang himself out the window to escape the bullying.

Got something to say?