Added prisoners solution.