Answer:
They agreed to a bet: if the lawyer could spend fifteen years in total isolation, the banker would pay him two million rubles. The lawyer would have no direct contact with any other person, but could write notes to communicate with the outside world and receive whatever comforts he desired.