There was a short story I read by one of the great Russian authors (name escapes me atm). A young man made a bet with a banker that he would spend 10 years in solitary confinement and be provided with any reading material he asked for. If he could endure it the whole 10 years, the banker would reward him with a handsome amount of money.
Tap for spoiler
He sticks it out for nearly the entire period and leaves the night before the time is up.
Fantastic story, thought about it pretty regularly throughout college.
If this rings any bells, I'd love to be reminded of the name!
Edit: Nvm, I found it! The Bet by Anton Chekhov