What was the function of "Black Hole of Calcutta"?

Answer: Prison for British POWs