Solitary confinement is one of the most common methods for disciplining inmates, but it's also a very controversial issue.