The correct answer is A. Habeas Corpus.
A writ of habeas corpus is a legal action that can be used to challenge the legality of a person's detention. The writ orders the person detaining the individual to bring the person before a court so that the court can determine whether the detention is lawful.
A writ of mandamus is a court order that compels a government official or other person to perform a specific act.
A writ of prohibition is a court order that prohibits a lower court from proceeding with a case.
A writ of quo warranto is a court order that asks a person to show by what authority they are holding a particular office or position.
In the case of a person who has been arrested, a writ of habeas corpus can be used to challenge the legality of the arrest. The writ orders the person detaining the individual to bring the person before a court so that the court can determine whether the detention is lawful. If the court finds that the detention is unlawful, the court will order the person's release.
Habeas corpus is a powerful tool that can be used to protect individual liberty. It is one of the most important safeguards against arbitrary government power.