Step 1: Understanding the Question:
We have to put the stages of arrest procedure under the Code of Criminal Procedure in order.
Step 2: Detailed Explanation:
• First, the person arrested must be informed of the grounds of arrest (C).
• Next, the arrested person is told of the right to consult a lawyer / legal aid (B).
• The person is then kept in police custody (D), and must be produced before the Magistrate within 24 hours of arrest (A).
• Sequence: C, B, D, A.
Step 3: Final Answer:
The correct option is (D) \( C \rightarrow B \rightarrow D \rightarrow A \).