Step 1: Understanding the Question.
Wrongful confinement occurs when a person is wrongfully detained in a place where they cannot leave. In this case, A is preventing Z from leaving the building, which constitutes wrongful confinement under Section 340 of the Indian Penal Code (IPC).
Step 2: Analysis of Options.
- (A) wrongful confinement: This is the correct answer, as A has prevented Z from leaving the building.
- (B) wrongful restraint: This option refers to preventing someone from moving but without confining them to a place.
- (C) Both wrongful confinement and wrongful restraint: This is incorrect because wrongful restraint is not applicable here.
- (D) None of these: This is incorrect, as wrongful confinement is the correct charge.
Step 3: Conclusion.
Thus, the correct answer is (A) wrongful confinement.