/**
 * This exercise focuses on modifying elements in a list using indexing.
 * The goal is to remove a suspect from the list of suspects.
 *
 * @param policeOfficer The name of the police officer.
 * @param suspects A list of suspects.
 */
import kotlin.random.Random


fun removeSuspect(policeOfficer: String, suspects: MutableList<String>) {

    // Generate a random index for the suspect to be removed
    val index = Random.nextInt(0, suspects.size)

    // Remove the suspect at the generated index
    suspects.removeAt(index)

    // Print the updated list of suspects
    println("Officer $policeOfficer, the suspect has been removed.")
    println("Updated list of suspects: $suspects")
}
import kotlin.random.Random

/**
 * This exercise focuses on modifying elements in a list using indexing.
 * The goal is to remove a suspect from the list of suspects.
 *
 * @param policeOfficer The name of the police officer.
 * @param suspects A list of suspects.
 */
fun removeSuspect(policeOfficer: String, suspects: MutableList<String>) {
import kotlin.random.Random

/**
 * This exercise focuses on modifying elements in a list using indexing.
 * The goal is to remove a suspect from the list of suspects.
 *
 * @param policeOfficer The name of the police officer.
 * @param suspects A list of suspects.
 */
fun removeSuspect(policeOfficer: String, suspects: MutableList<String>) {

    // Generate a random index for the suspect to be removed
    val index = Random.nextInt(0, suspects.size)

    // Remove the suspect at the generated index
    suspects.removeAt(index)

    // Print the updated list of suspects
    println("Officer $policeOfficer, the suspect has been removed.")
    println("Updated list of suspects: $suspects")
}