Working the night shift, Terry is paired with detective-in-training Kumail Nanjiani and heads back to high school to investigate a tech CEO's death.