The correct answer is A. Mandamus.

A writ of mandamus is a court order that compels a public official to perform a legal duty. It is used to ensure that government officials comply with the law.

A writ of quo warranto is a court order that asks a person to show by what authority they are holding a public office. It is used to remove someone from office who is not qualified to hold it.

A writ of certiorari is a court order that asks a higher court to review a decision made by a lower court. It is used to correct errors in the law or to ensure that the law is applied fairly.

A writ of habeas corpus is a court order that requires a person to be brought before a court to determine whether they are being held lawfully. It is used to protect people from being held in prison without being charged with a crime.

In the case of a person who is restricted to perform any duties for which he does not have the authority, a writ of mandamus would be the most appropriate remedy. This is because a writ of mandamus is specifically designed to compel a public official to perform a legal duty. In this case, the public official would be the person who is restricted from performing the duties, and the legal duty would be to refrain from performing any duties for which they do not have the authority.