So, I’m not a psychiatrist. I am, However, a parent to a child who receives disability for autism. The hacker has also been reported to be autistic. Now I’m not going to talk about how different autism can be from one person to the next, but one of the first things you are taught is to try and redirect their negative behaviors into something more positive.
In this case that could look something like. “Hey, instead of illegally hacking companies. How about you come to work for the government and have a high paying job hacking for us.” You know that sort of thing.
The kid is talented. Sitting in a prison of any kind is wasting those talents. He would still need a lot of supervision in the above scenario. But he’d still be doing what he loves and presumably contributing to society.