Arrest and detention are essential parts of the criminal procedure aimed to impart justice. It aids the police in the…