The story takes place at a facility where men accused of sexual misconduct are subjected to an algorithm designed to rehabilitate them.