A judge has sentenced a mass shooter to life in prison without parole for killing five people in North Carolina in 2022 when he was 15.